//
//  CosomViewController.h
//  tp1-gti350
//
//  Created by Coulon-Hamelin, Alexandre on 13-09-12.
//  Copyright (c) 2013 Coulon-Hamelin, Alexandre. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HockeyCosom.h"

@interface CosomViewController : UIViewController

@property (weak, nonatomic) IBOutlet UITableView *team1List;
@property (weak, nonatomic) IBOutlet UITableView *team2List;
@property (weak, nonatomic) IBOutlet UIStepper *periodTracker;
@property (weak, nonatomic) IBOutlet UITextField *nbCurrentPeriod;
@property (weak, nonatomic) IBOutlet UITextField *playerLastName;
@property (weak, nonatomic) IBOutlet UITextField *playerFirstName;
@property (weak, nonatomic) IBOutlet UITextField *playerNumber;
@property (weak, nonatomic) IBOutlet UILabel *scoreTeam1;
@property (weak, nonatomic) IBOutlet UILabel *scoreTeam2;
@property (weak, nonatomic) IBOutlet UITextField *txtNameTeam2;
@property (weak, nonatomic) IBOutlet UITextField *txtNameTeam1;
@property (weak, nonatomic) IBOutlet UILabel *lblNameTeam1;
@property (weak, nonatomic) IBOutlet UILabel *lblNameTeam2;
@property UITextField *teamNumber;
@property UITextField *scorer;
@property UITextField *pass1;
@property UITextField *pass2;
@property UIAlertView *alertviewGoal;
@property (weak, nonatomic) IBOutlet UITextView *listTeam1;
@property (weak, nonatomic) IBOutlet UITextView *listTeam2;
@property (weak, nonatomic) IBOutlet UITextView *scoreBoard;
@property (weak, nonatomic) IBOutlet UITextView *bestPlayersList;

- (IBAction)addPeriod:(id)sender;
- (IBAction)addPlayerTeam1:(id)sender;
- (IBAction)addPlayerTeam2:(id)sender;
- (IBAction)generateThreeStars:(id)sender;
- (IBAction)addGoal:(id)sender;
- (IBAction)btnNameTeam1:(id)sender;
- (IBAction)btnNameTeam2:(id)sender;
- (IBAction)newGame:(id)sender;

- (void)changeTeamName: (int) teamNb;
- (void)showAlertAddGoal;
- (void)newGoal;
- (void)reloadList:(UITextView *) list;

@property HockeyCosom *game;

@end
